CRPEJob::OutputToWindow

Use CRPEJob::OutputToWindow to set the output of the print job to the preview window that will have the specified attributes. It does not print the report, but specifies that when the report is printed, it will also appear in a preview window. To print the report, use CRPEJob::Start.

Syntax

For an SDI application

BOOL OutputToWindow (
        const _TCHAR *title,
        int left,
        int top,
        int width,
        int height,
        int style,
        CWnd *parentWindow );

For an MDI application

BOOL OutputToWindow (
        const _TCHAR *title,
        int left,
        int top,
        int width,
        int height,
        int style,
        CMDIFrameWnd *parentWindow );
Parameters

title

Specifies a pointer to the title that you want to appear in the title bar.

left

Specifies the x coordinate of the upper left-hand corner of the preview window, in device coordinates.

top

Specifies the y coordinate of the upper left-hand corner of the preview window, in device coordinates.

width

Specifies the width of the preview window, in device coordinates.

height

Specifies the height of the preview window, in device coordinates.

style

Specifies the style of the window being created. Style setting can be combined using the bitwise Or operator (|). Refer to the CWnd class in the Microsoft Foundation Class Library reference for possible window styles.

parentWindow

Specifies a pointer to the CWnd object (in an SDI application) or the CMDIFrameWnd object (in an MDI application) for the window that is the parent of the preview window. Specify NULL if the preview window will not have a parent window.

Returns
Remarks

This method is overloaded to handle both SDI and MDI applications.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com